﻿package com.snakedickgames.common.sandy 
{
    import com.pblabs.engine.debug.Logger;
    import sandy.primitive.Box;
    
    
    public class SandyBox extends SandyTransformable
    {
        public var width:Number = 6;
        public var height:Number = 6;
        public var depth:Number = 6;
        public var mode:String = "tri";
        public var quality:Number = 1;
        
        public function get box():Box
        {
            return _node as Box;
        }
        
        override protected function onReset():void 
        {
            if (!node && scene )
            {
                node = new Box(name, width, height, depth, mode, quality);
            }
            super.onReset();
        }
    }

}